#define _CRT_SECURE_NO_WARNINGS 1

#include <queue>
#include <list>
#include <iostream>

using namespace std;

#include "stack.h"
#include "queue.h"

void test01()
{
	dr::stack<int> st;
	st.push(1);
	st.push(2);

	cout << st.top() << " ";
	st.pop();

	st.push(3);
	st.push(4);



	while(!st.empty())
	{
		cout << st.top() << " ";
		st.pop();
	}
	cout << endl;
	cout << st.size() << endl;

}

void test02()
{
	queue<int, list<int> > q;
	q.push(1);
	q.push(2);
	q.push(3);
	q.push(4);

	while (!q.empty())
	{
		cout << q.front() << " ";
		q.pop();
	}
	cout << endl;
}

int main()
{
	test02();
	return 0;
}